package com.easylinkin.linkappapi.config.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_config")
public class Config extends Model<Config> {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)

    private Integer id;

    /**
     * 配置关键字
     */

    @TableField(value = "key_")
    private String key;

    /**
     * 租户ID
     */

    private String tenantId;

    /**
     * 模块层级
     */

    private String moduleLevel;

    /**
     * 描述
     */

    @TableField(value = "describe_")
    private String describe;

    /**
     * 创建时间
     */

    private Date createTime;

    /**
     * 修改时间
     */

    private Date modifyTime;

    /**
     * 配置的值
     */

    @TableField(value = "value_")
    private String value;

    /**
     * 样例
     */
    private String example;


    public Config(String key) {
        this.key = key;
    }
    public Config() {
    }
}
